package tags

import (
	"github.com/gin-gonic/gin"
	. "savor_gin/controllers/tags"
)

func TagLoad(g *gin.Engine) {
	g.POST("/tag", AddTag)
	g.GET("/tag", GetTagById)
	g.PUT("/tag/:tagId", UpdateTagInfo)
	g.DELETE("/tag", DeleteTag)
	g.GET("/tag/search", GetTagListLikeKey)
	g.GET("/tag/list", GetTagList)
}
